package com.zhuhjay.service.imchat.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author ZhuHJay
 * @since 2023-07-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("chat_room")
@ApiModel(value = "ChatRoom对象", description = "")
public class ChatRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("聊天室id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("聊天室名")
    private String name;

    @ApiModelProperty("聊天室头像")
    private String avatar;

    @ApiModelProperty("聊天室状态(0:停用;1:正常;2:禁言)")
    private Byte status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
